<?
exit;
include_once("/var/www/html/new/com.inc.php");
include_once("/var/www/html/new/d/class/OrderRecord.php");
include_once("/var/www/html/new/d/class/AccessRecord.php");
include_once('/var/www/html/new/d/class/OrderSmsManual.class.php'); // 短信通知


// print_r($_SESSION);
//print_r(get_loaded_extensions());
//echo extension_loaded('mysqli_s');
//exit;
//$ac=$GLOBALS['_ac'];
//$pw=$GLOBALS['_pw'];
//$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
//1208426
//1207742
//$simxml = $s->Order_Globle_Search("","","","","","","","","","","","","1207742","","","","","",1,1,0,1,"","","","","","","","","",0,1);
//$simxml_o = simplexml_load_string($simxml);

$proInfos['mainOrder'] = $simxml_o->Rec;
$smsManual = new \PFT\SMS\OrderSmsManual($soap);
//print_r($proInfos);
//exit;
//$smsManual->SetParam($ordertel, $aid, $member, $p_info['tid'], $pid, $r, $p_info['lid']);
echo $smsManual->OrderNotify('AFTER_PAY', $proInfos);
exit;

/**
     * 设置参数
     *
     * @param $order_tel 客户手机号
     * @param $aid 上级供应商id
     * @param $fid 分销商id
     * @param $tid 票id
     * @param $pid 产品id
     * @param $order_num 订单号
     * @param $lid 景区id
     */
// $smsManual->SetParam($ordertel, $aid, $member, $p_info['tid'], $pid, $r, $p_info['lid']);

//发送供应商短信通知
/**
     * 非酒店订单发送短信/微信通知供应商
     *
     * @param string $data_type 数据类型:AFTER_SUBMIT标识下单后发送【$data为产品信息】，AFTER_PAY标识支付后发送【$data为订单信息】
     * @param array $data 产品数据或订单数据
     * @param string $customer_name 下单人姓名
     * @param string $order_num 订单号
     * @param string $tel 联系电话
     * @param null $note 备注信息
     * @return bool
     */




// $start = microtime(true);
// print_r($s->Order_Globle_Search("","","","","","","","","","","","","1146347","","","","","",1,1,0,1,"","","","","","","","","",0,1));
// echo microtime(true) - $start;

// exit;
	
// print_r($s->Order_Globle_Search('', '', '', '', '', '', '', '', '', '', '2015-02-02 00:00:00', '2015-03-02 23:59:59', '', '', '', '3', '', '', 1, 1, 0, 15, 0, 0, '', 0, '', 0, '', '', 113, 0, 0, 0,'',''));
// print_r($s->Order_Globle_Search('', '', '', '', '', '', '2015-03-02 00:00:00', '2015-03-02 23:59:59', '', '', '', '', '', '', '', '3', '', '', 1, 1, 0, 15, 0, 0, '', 0, '', 0, '', '', 113, 0, 0, 0,'',''));
// exit;
// echo $s->Dynamic_Price_And_Storage('123612','2890','2015-05-15',1,1,0,3254);
// echo $s->Dynamic_Price_And_Storage(123483,11528,'2015-03-10',1,0,0,2115);
// echo $s->Dynamic_Price_And_Storage(200588,1553,'2015-03-10',1,0,0,4);
// print_r($s->Dynamic_Price_And_Storage(123624,12197,'',3,0,0,3385,'2015-03-25','2015-03-31'));exit;
// print_r($s->Dynamic_Price_And_Storage('100001', '11520', '2015-03-30', 1, 0, 0, 2115));exit;
// print_r($s->Dynamic_Price_And_Storage(124224,12383,'2015-04-03',1,0,0,5172));exit;
// print_r($s->Dynamic_Price_And_Storage(200566,10161,'2015-04-08',1,1,0,3614));exit;
// print_r($s->Order_Globle_Search("","","","","","","","","","","","","","","","","","",1,1,0,1,0,0,"",0,'886483186814396'));exit;
// echo $s->Order_Change_Pro('969300',0,0,0,0);


// echo $s->Order_Globle_Search('', 1433, '', '', '', '', '2015-04-17 00:00:00', '2015-04-17 23:59:59', '', '', '', '', '', '', '', '', '', '', 1,1, '0', '15', 0, '0', '', '0', '', '0', '', '', '', '0', '0', '0','','');
// print_r(array("","","","","","", "","","","","","","1036502","","","","","",1,1,0,100,"", "","","","","","","","",0,2));
// print_r($s->Order_Globle_Search("","","","","","", "","","","","","","1036502","","","","","",0,1,0,100,"", "","","","","","","","",0,2));exit;
?>